package com.pai4j.pgc.dao.community;
import com.pai4j.pgc.entity.community.CCNavPathEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 *
 *
 * @author: CYM-pai
 * @date: 2025/10/27 14:41
 **/
@Repository
public interface ICCNavPathDAO extends JpaSpecificationExecutor<CCNavPathEntity>,
        JpaRepository<CCNavPathEntity, Long> {

    CCNavPathEntity findAllById(Long id);

    List<CCNavPathEntity> findAllByStatusInOrderByTagDescScoreDescIdAsc(List<String> statusList);
    List<CCNavPathEntity> findAllByCcIdAndStatusInOrderByTagDescScoreDescIdAsc(Long ccId, List<String> statusList);
}
